home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
kbdpipe.z
/
kbdpipe
Wrap
Text File
|
1998-10-20
|
6KB
|
131 lines
kkkkbbbbddddppppiiiippppeeee((((1111)))) kkkkbbbbddddppppiiiippppeeee((((1111))))
NNNNAAAAMMMMEEEE
_kkkk_bbbb_dddd_pppp_iiii_pppp_eeee - use the _kkkk_bbbb_dddd module in a pipeline
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
_kkkk_bbbb_dddd_pppp_iiii_pppp_eeee _----_tttt _t_a_b_l_e [_----_ffff _t_a_b_l_e_f_i_l_e] [_----_FFFF] [_----_oooo _o_u_t_f_i_l_e] [_i_n_f_i_l_e(_s)]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The _kkkk_bbbb_dddd_pppp_iiii_pppp_eeee command allows the use of _kkkk_bbbb_dddd tables as pipeline elements
between user programs. [See _kkkk_bbbb_dddd_cccc_oooo_mmmm_pppp(1M) and _kkkk_bbbb_dddd(7) for descriptions of
the module and its capabilities.] _kkkk_bbbb_dddd_pppp_iiii_pppp_eeee is mostly useful in code set
conversion applications. If an output file is given, then all _i_n_f_i_l_e_s
are piped to the given output file. With no arguments other than _----_tttt,
standard input is converted and sent to standard output.
The required option argument _----_tttt identifies the table to be used for
conversion. If the table has already been loaded as a shared table [see
_kkkk_bbbb_dddd_llll_oooo_aaaa_dddd(1M)] it is attached. If, however, the table has not been loaded,
an attempt is made to load it. If the given table name is not an
absolute pathname then the name of the system mapping library is
prepended to the argument, and an attempt is made to load the table from
the resulting pathname (that is, it becomes an argument to the loader,
_kkkk_bbbb_dddd_llll_oooo_aaaa_dddd). Assuming the table can be loaded, it is attached.
The argument to _----_ffff defines the filename from which the table will be
loaded, overriding the default action described above. The file is
loaded (in its entirety), and the named table attached. This option
should be used if the default action would fail.
The output file specified by _----_oooo must not already exist (a safety
feature.) The option _----_FFFF may be used to override the check for existence
of the output file; in this case, any existing _o_u_t_f_i_l_e will be truncated
before being written.
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
The following example converts two input files into relative nonsense by
mapping ASCII into Dvorak keyboard equivalents using the _DDDD_vvvv_oooo_rrrr_aaaa_kkkk table.
The table is assumed to reside in the file _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_kkkk_bbbb_dddd_////_DDDD_vvvv_oooo_rrrr_aaaa_kkkk. The
existing output file is overwritten:
_kkkk_bbbb_dddd_pppp_iiii_pppp_eeee _----_FFFF _----_tttt _DDDD_vvvv_oooo_rrrr_aaaa_kkkk _----_oooo _iiii_aaaa_pppp_xxxx_aaaa_iiii_...._vvvv_jjjj _ffff_iiii_llll_eeee_1111 _ffff_iiii_llll_eeee_2222
The following example loads the _DDDD_vvvv_oooo_rrrr_aaaa_kkkk table from a different file, then
converts standard input to standard output. The _DDDD_vvvv_oooo_rrrr_aaaa_kkkk table (assumed to
be non-resident) is explicitly loaded from an absolute path beginning at
the user's home directory:
_kkkk_bbbb_dddd_pppp_iiii_pppp_eeee _----_tttt _DDDD_vvvv_oooo_rrrr_aaaa_kkkk _----_ffff _$$$$_HHHH_OOOO_MMMM_EEEE_////_tttt_aaaa_bbbb_llll_eeee_ssss_////_DDDD_vvvv_oooo_rrrr_aaaa_kkkk_...._tttt_aaaa_bbbb
FFFFIIIILLLLEEEESSSS
_////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_kkkk_bbbb_dddd - directory containing system standard table files.
PPPPaaaaggggeeee 1111
kkkkbbbbddddppppiiiippppeeee((((1111)))) kkkkbbbbddddppppiiiippppeeee((((1111))))
SSSSEEEEEEEE AAAALLLLSSSSOOOO
_kkkk_bbbb_dddd_llll_oooo_aaaa_dddd(1M), _kkkk_bbbb_dddd_ssss_eeee_tttt(1), _kkkk_bbbb_dddd(7).
NNNNOOOOTTTTEEEESSSS
Because _kkkk_bbbb_dddd_pppp_iiii_pppp_eeee uses _kkkk_bbbb_dddd_llll_oooo_aaaa_dddd(1) to load tables, it cannot resolve link
references. Therefore, if a composite table is to be used, the relevant
portions must either be already loaded and public, or be contained in the
file indicated (via the _----_ffff option) on the command line; in this case, the
composite elements must be loaded earlier than the link entry.
Users may use _kkkk_bbbb_dddd tables in programs at user level by opening a pipe,
pushing the module, and setting via related commands; hence, there is no
real need to use the _kkkk_bbbb_dddd_pppp_iiii_pppp_eeee command. _kkkk_bbbb_dddd_pppp_iiii_pppp_eeee may not be supported in
future releases.
PPPPaaaaggggeeee 2222